﻿namespace OasisCiq.Xpil
{
    using CommonTypes;
    using Xal;
    using XS;

    /// <summary>
    /// Citizenship and residence information in a free-text form.
    /// </summary>
    public class CountryOfResidence : CountryType, IValidityDateGroup
    {
        /// <summary>
        /// Type of residency. e.g. permenant resident, citizen, temporary resident
        /// </summary>
        public ResidencyTypeList Type { get; set; }

        /// <summary>
        /// Status of the entity. e.g. Old, Current, Inactive, Active, etc
        /// </summary>
        public StatusList Status { get; set; }

        /// <summary>
        /// Could be start date, issue date, validity start date, etc
        /// </summary>
        public XSDateTime DateValidFrom { get; set; }

        /// <summary>
        /// Could be end date, expiry date, validity end date, etc
        /// </summary>
        public XSDateTime DateValidTo { get; set; }
    }
}
